package com.ruoyi.basic.domain;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.ruoyi.api.system.domain.SysDept;
import com.ruoyi.api.system.domain.SysRegion;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

import java.util.Date;

/**
 * 用户基本信息对象 basic_user
 * 
 * @author ruoyi
 * @date 2021-08-19
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_user")
public class BasicUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 所属部门 */
    @NotBlank(message = "所属部门不能为空")
    private Long deptId;

    /** 图片路径 */
    private String userImage;

    /** 工号 */
    @Excel(name = "用户工号")
    private String userNo;

    /** 姓名 */
    @NotBlank(message = "姓名不能为空")
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别", dictType = "sys_user_sex", comboDict = "sys_user_sex")
    private String sex;

    /** 人员属性 */
    @Excel(name = "人员属性", dictType = "basic_user_type", comboDict = "basic_user_type")
    private String userType;

    /** 职位类别 */
    @Excel(name = "职位类别", dictType = "basic_user_position", comboDict = "basic_user_position")
    private String userPosition;

    /** 管理科室 */
    @Excel(name = "管理科室", dictType = "basic_user_dept", comboDict = "basic_user_dept")
    private String userDept;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 出生日期 */
    @Excel(name = "出生日期", width = 30)
    private String birthday;

    /** 民族 */
    @Excel(name = "民族", dictType = "basic_user_nation", comboDict = "basic_user_nation")
    private String nationType;

    /** 健康状况 */
    @Excel(name = "健康状况", dictType = "basic_user_health", comboDict = "basic_user_health")
    private String healthStatus;

    /** 政治面貌 */
    @Excel(name = "政治面貌", dictType = "basic_user_political", comboDict = "basic_user_political")
    private String politicalType;

    /** 组织时间 */
    @Excel(name = "组织时间")
    private String politicalTime;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 婚姻状况 */
    @Excel(name = "婚姻状况", dictType = "basic_user_marry", comboDict = "basic_user_marry")
    private String marryType;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String regionName;

    /** 家庭住址 */
    @Excel(name = "详细地址")
    private String address;

    /** 来院时间 */
    @Excel(name = "来院时间")
    private String hospitalTime;

    /** 离院时间 */
    @Excel(name = "离院时间")
    private String leaveTime;

    /** 技术类别 */
    @Excel(name = "技术类别", dictType = "basic_user_technical", comboDict = "basic_user_technical")
    private String technicalType;

    /** 考勤分类 */
    @Excel(name = "考勤分类", dictType = "attend_type")
    private String attendType;

    /** 岗位属性 */
    @Excel(name = "岗位属性", dictType = "post_type")
    private String postType;

    /** 社会兼职情况 */
    private String holdWork;

    /** 工龄起算日期 */
    private String seniorityStart;

    @TableField(exist = false)
    @Excel(name = "部门名称")
    private String deptName;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;

}
